#include <iostream>
#include <cstdlib>
#include <string>

using namespace std;

class Game
{
	string name;
	bool exitFlag = false;
	static int version = 1;
public:
	Game(string name)
	{
		this->name = name;
	}
	
	void run(string cmd)
	{
		if(cmd == "hello")
		{
			cout << "Hi\n";
		}
		else if(cmd == "exit")
		{
			exitFlag = true;
		}
	}
	
	bool isExit()
	{
		return !exitFlag;
	}
	
	string getName()
	{
		return name;
	}
};



int main()
{
	Game game("Hello,World");
	cout << game.getName() << Game::version << endl;
	do {
		string cmd;
		cin >> cmd;
		game.run(cmd);
	} while(game.isExit());
}
